package com.jieyang.oa.service.impl;

import com.jieyang.oa.dao.UserDao;
import com.jieyang.oa.pojo.entity.Employee;
import com.jieyang.oa.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 29276
 * @version 1.0
 * @description: TODO
 * @date 2021/8/14 18:49
 */
@Service
@Transactional()
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public Employee findByEmpId(String empId, String password) {
        return userDao.selectByEmpId(empId, password);
    }
}
